home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / zip2new1.zip / ZIP2NEW.BAT < prev   
DOS Batch File  |  1993-01-07  |  871b  |  38 lines

  1. @echo off
  2. cls
  3. if %1!==! goto error
  4. if %2!==! goto error
  5. set a=%1
  6. set b=%2
  7. echo      Welcome to the PKZip Converter! 1.0
  8. echo   This program will convert PKZipped files on a floppy disk
  9. echo      to whichever version of PKZip you have on the path.
  10. echo.
  11. if exist %b%:\xxxx\*.* goto error2
  12. pause
  13. %b%:
  14. cd\
  15. md\xxxx
  16. %a%:
  17. FOR %%c IN (*.zip) DO call convert %%c 
  18. %b%:
  19. cd\
  20. rd\xxxx
  21. goto end
  22.  
  23.  
  24. :error
  25. echo        Welcome to the PKZip Converter! 1.0
  26. echo   To Convert: Type "Zip2new" followed by the drive letter
  27. echo        where the files you would like to convert reside and 
  28. echo             the drive letter of your hard drive.
  29. echo                   Ex: Zip2new a c
  30. goto end
  31.  
  32. :error2
  33. echo     MAKE SURE YOU DO NOT HAVE A DIRECTORY NAMED "XXXX"
  34. echo                 ON YOUR HARD DRIVE!!
  35. echo                ALL YOUR DATA WILL BE LOST!!
  36. :End
  37.        
  38.